import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { UtilsModule } from "./../../shared/utils.module"
import { StoreModule } from "@ngrx/store";
import { tableState } from "./../quote-table/quote-table-state";

import { DropdownModule } from "dropdown";
import { QuoteTableComponent } from "./../quote-table/quote-table.component";
import { QuoteTableRowComponent } from "./quote-table-row/quote-table-row.component";
import { QuoteTableCellComponent } from "./quote-table-row/quote-table-cell/quote-table-cell.components"
import { QuotePaginationComponent } from "./quote-pagination/quote-pagination.component";
import { QuoteTableService } from "./../quote-table/quote-table.service";
import { CmScrollModule } from "scroll-bar";
import { BroadcastModule } from "broadcast";

// console.debug("NGRX: ", StoreModule);

@NgModule({
  imports: [
    BroadcastModule,
    BrowserModule,
    UtilsModule,
    DropdownModule,
    CmScrollModule,
    StoreModule.provideStore({
      tableState
    })
  ],
  declarations: [
    QuoteTableComponent,
    QuoteTableRowComponent,
    QuoteTableCellComponent,
    QuotePaginationComponent
  ],
  exports: [
    QuoteTableComponent,
    QuoteTableCellComponent,
    QuoteTableRowComponent
  ],
  providers: [
    QuoteTableService
  ]
})
export class QuoteTableModule { }